from django.db import models
from meiduo_mall.utils.models import BaseModel

# Create your models here.

class OAuthQQUser(BaseModel):

    user = models.ForeignKey('users.User', on_delete=models.CASCADE)
    openid = models.CharField(db_index=True, max_length=64)

    class Meta:
        db_table = 'tb_oauth'
        verbose_name = 'QQ用户'
        verbose_name_plural = verbose_name

    # def a_print(self):
    #     print(111)

# qq = OAuthQQUser.objects.get(id=1)
# qq.a_print()
